import Vue from 'vue'
import VueRouter from 'vue-router'
import stuPage from '../views/stuPage/index.vue'
import marPage from '../views/magorPage/index.vue'
import infoPage from '../views/infoPage/index.vue'
// import teaPage from '../views/teaPage/index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'infopage',
    component: infoPage
  },
  {
    path: '/stu',
    name: 'stupage',
    component: stuPage
  },
  {
    path: '/magor',
    name: 'marpage',
    component: marPage
  },
  {
    path: '/tea',
    name: 'teapage',
    component: () => import('../views/teaPage/index.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
